package com.litepaldemo.db;

import org.litepal.crud.DataSupport;

import java.util.Date;

/**
 * Created by Lzz on 9/23/2017.
 */

public class HeroBean extends DataSupport{

    private int id;
    private String name;
    private String property; // 属性
    private float attack; // 攻
    private float defend; //防
    private Date publishDate;

    public HeroBean() {
      super();
    }

    public HeroBean(int id, String name, String property, float attack, float defend, Date publishDate) {
        this.id = id;
        this.name = name;
        this.property = property;
        this.attack = attack;
        this.defend = defend;
        this.publishDate = publishDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public float getAttack() {
        return attack;
    }

    public void setAttack(float attack) {
        this.attack = attack;
    }

    public float getDefend() {
        return defend;
    }

    public void setDefend(float defend) {
        this.defend = defend;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }


    @Override
    public String toString() {
        return "HeroBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", property='" + property + '\'' +
                ", attack=" + attack +
                ", defend=" + defend +
                ", publishDate=" + publishDate +
                '}';
    }
}
